package com.hoshiicloud.stock.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 库存修改参数实体
 *
 * @author : yangcheng
 * @date : 2019/5/18 09:51
 * @mail : maiboyc@163.com
 **/
@ApiModel
@Data
public class WvoucherdUpdateParam {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空")
    @ApiModelProperty(name = "id", value = "ID", dataType = "java.lang.Long", example = "3171776001692664001")
    private Long id;

    // 库存单ID
    @NotNull(message = "库存单ID不能为空")
    @ApiModelProperty(name = "parentid", value = "库存单ID", required = true, dataType = "java.lang.Long", example = "3171776001692663890")
    private Long parentid;

    // SKUID
    @NotNull(message = "SKUID不能为空")
    @ApiModelProperty(name = "skuid", value = "SKUID", required = true, dataType = "java.lang.Long", example = "3171776001692663891")
    private Long skuid;

    // SKUNO
    @NotNull(message = "SKUNO不能为空")
    @ApiModelProperty(name = "skuno", value = "SKUNO", required = true, dataType = "java.lang.String", example = "SKU0001")
    private String skuno;

    // 商品名称
    @NotNull(message = "商品名称不能为空")
    @ApiModelProperty(name = "skuname", value = "商品名称", required = true, dataType = "java.lang.String", example = "女士衬衫")
    private String skuname;

    // 规格
    @NotNull(message = "规格不能为空")
    @ApiModelProperty(name = "spec", value = "规格", required = true, dataType = "java.lang.String", example = "件")
    private String spec;

    // 单位
    @NotNull(message = "单位不能为空")
    @ApiModelProperty(name = "unit", value = "单位", required = true, dataType = "java.lang.String", example = "件")
    private String unit;

    // 单价
    @NotNull(message = "单价不能为空")
    @ApiModelProperty(name = "unitprice", value = "单价", required = true, dataType = "java.math.BigDecimal", example = "89.00")
    private BigDecimal unitprice;

    // 数量
    @NotNull(message = "数量不能为空")
    @ApiModelProperty(name = "quantity", value = "数量", required = true, dataType = "java.math.BigDecimal", example = "100.00")
    private BigDecimal quantity;

    // 金额
    @NotNull(message = "金额不能为空")
    @ApiModelProperty(name = "amount", value = "金额", required = true, dataType = "java.math.BigDecimal", example = "8900")
    private BigDecimal amount;

    // 参考仓库
    @ApiModelProperty(name = "refwhcode", value = "参考仓库", dataType = "java.lang.String", example = "WH0002")
    private String refwhcode;

    // 备注
    @ApiModelProperty(name = "remark", value = "备注", required = true, dataType = "java.lang.String", example = "备注信息")
    private String remark;

}  